package com.moco.launcher.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.moco.launcher.R;
import com.oazon.common.Settings;

/**
 * Created by win 7 on 2015/6/26.
 */
public class BetaTestActivity extends Activity {
    private Button ok, cancel;
    private TextView message;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.article);

        ok = (Button) findViewById(R.id.ok);
        cancel = (Button) findViewById(R.id.cancel);
        message = (TextView) findViewById(R.id.tvTextToast);

        message.setText(R.string.beta_message);

        ok.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Settings.getInstance(BetaTestActivity.this).set("article", "true");
                finish();
            }
        });

        cancel.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Settings.getInstance(BetaTestActivity.this).set("article", "false");
                finish();
            }
        });
    }


}
